home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 4_17.lha / 4_17 / 4_17a14.c < prev    next >
Text File  |  1993-08-08  |  464b  |  19 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / read a series of tokens up to the NL,
  6. / adding them to the given token list
  7. oid xtoken_list(toklist *thislist)
  8.  
  9.    // read definition & create list
  10.    tok *tokval;
  11.  
  12.    while (tokval = get_token(), tokval->tok_type != NL)
  13. if (tokval->tok_type == END)
  14.     error("end of file found");
  15.  
  16. else
  17.     addtok(thislist, tokval);
  18.  
  19.